//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_resp_dlg_helper.sqf"
#include "xr_macros.sqf"

__TRACE("start");
while {true} do {
	waitUntil {!dialog};
	if (GVARXR(pl_has_pos_changed)) exitWith {};
	if (!GVARXR(no_respawn_dialog)) then {createDialog QGVARXR(RespDlg)};
};
if (GVARXR(max_lives) != -1 && {__pGetVar(GVARXR(lives)) > -1}) then {
	hintSilent format [(localize "STR_DOM_MISSIONSTRING_933"), __pGetVar(GVARXR(lives))];
};
__TRACE(" end");